import axios from 'axios'


 const getLocaion = function(ip){
     return new Promise((resolve,reject)=>{
        axios.get('https://restapi.amap.com/v5/ip?',{params:{
            type:4,
            key:'864e701e02adba74a6a7298d714e1048',
            ip:ip
        }}).then(res=>{
            resolve(res)
        }).catch(err=>{
            reject(err)
        })
     })
}
export default getLocaion
